(use-modules
 (gnu)
 (gnu system)
 (gnu system nss))

(use-service-modules
 base ssh avahi dbus networking web desktop)

(use-package-modules guile avahi)

(operating-system
 (host-name "artaniesta")
 (timezone "Europe/Oslo")
 (locale "en_US.UTF-8")

 (bootloader (grub-configuration (target "")))
 (swap-devices '(""))
 (file-systems (cons* (file-system
                       (device "rootfs")
                       (title 'label)
                       (mount-point "/")
                       (type "ext4"))
                      %base-file-systems))

 (issue "\n\tArtaniesta.\n\n")
 (users (list (user-account
               (name "thomas")
               (comment "This should be interesting...")
               (group "users")
               (supplementary-groups '("wheel" "users"))
               (home-directory "/home/thomas"))))

 (packages (cons* guile-2.2 guile-lib artanis
                  %base-packages))
 (services
  (cons*
   (avahi-service)

   (service nginx-service-type
            (nginx-configuration
             (server-blocks
              (list (nginx-server-configuration
                     (server-name '("artaniesta.local"))
                     (root "/share/www/")
                     (https-port #f)
                     (ssl-certificate #f)
                     (ssl-certificate-key #f))))))

   %base-services))
 (name-service-switch %mdns-host-lookup-nss))

